package com.system.patient.repository;

import com.system.patient.bean.Patient;
import com.system.patient.vo.PatientVo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @className: PatientRepository
 * @description: 病人数据库访问接口
 * @author: Li Chuanwei
 * @date: 2023/11/12 15:32
 * @Company: Copyright [日期] by [作者或个人]
 **/

public interface PatientRepository extends JpaRepository<Patient, Integer> {
    List<Patient> findAllByLoginId(Integer loginId);
    Patient findByIdCardNumber(String idCardNumber);
}
